<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateposterHrefsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('poster_hrefs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('posterId')->nullable()->comment('海报编号');
            $table->integer('imgtpl_id')->default(0)->nullable()->unsigned()->comment('海报模板');
            $table->string('path')->nullable()->comment('相对路径');
            $table->string('storage')->nullable()->comment('存储服务');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('poster_hrefs');
    }
}
